package com.sn.springboot_netty;

import com.sn.springboot_netty.netty.server.NettyServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.cache.annotation.EnableCaching;

import java.net.InetSocketAddress;

@SpringBootApplication
@EnableCaching
@ServletComponentScan
public class SpringbootNettyApplication {

    public static void main(String[] args) {

        SpringApplication.run(SpringbootNettyApplication.class, args);

        //启动netty服务
//        NettyServer server = new NettyServer();
//        server.start(new InetSocketAddress("127.0.0.1",8089));
    }

}
